package com.dxk.controller;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;


@Controller
public class securityController {

    @RequestMapping({"/","index"})
    public String index(){

        return "index";
    }
    @RequestMapping("to")
    public String tologin(){

        return "view/login";
    }

    @RequestMapping("/leve1/{id}")
    public String v(@PathVariable("id") int id){

        return "view/level1/"+id;

    }
    @RequestMapping("/leve2/{id}")
    public String v2(@PathVariable("id") int id){

        return "view/leve2/"+id;

    }
    @RequestMapping("/leve3/{id}")
    public String v3(@PathVariable("id") int id){

        return "view/leve3/"+id;

    }

}
